package zwp.example.demo1.demo_pojo.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalTime;

/**
 * @Author zwp14
 * @create 2024/6/11 19:03
 * @description 时间
 */
@Data
public class PojoLocalTimeFormat {
    /**
     * 确保数据一致性
     */
    @DateTimeFormat(pattern = "HH:mm:ss")
    private LocalTime time;
}
